/****** Object:  Stored Procedure dbo.spr_InsertDBVisaEntry  ******/

 use [TourIS]
 GO

 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spr_InsertDBVisaEntry]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure [dbo].[spr_InsertDBVisaEntry]
 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS OFF
 GO

 CREATE  PROCEDURE [dbo].[spr_InsertDBVisaEntry]
 (
	@entrydate smalldatetime,
	@exitdate smalldatetime,
	@remarks varchar(100),
	@srno int,
	@visaid int
 )
 AS

 BEGIN
	SET NOCOUNT ON
	DECLARE @Err int

	INSERT INTO [VisaEntry]
	(
		[EntryDate],
		[ExitDate],
		[Remarks],
		[SrNo],
		[VisaID]
	)
	VALUES
	(
		@entrydate,
		@exitdate,
		@remarks,
		@srno,
		@visaid
	)

	SET @Err = @@Error
	RETURN @Err
 END

 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS ON
 GO

